// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import axios from 'axios'
Vue.prototype.axios= axios
//import VueResource from 'vue-resource'

Vue.config.productionTip = false

// 引入全局echarts,其它页也可应用
import echarts from 'echarts'  
Vue.prototype.$echarts = echarts  

//Vue实例对象 new Vue是全局构造函数
//el与data都是构造参数
new Vue({
  el: '#app', //DOM容器元素 new Vue构造函数挂载的地方
  router,     //路由router 
  components: { App }, //组件进行局部注册
  template: '<App/>'   //模板进行局部注册
})


